package com.app.web.socketio

import com.corundumstudio.socketio.SocketIOServer
import groovy.transform.CompileStatic
import groovy.transform.TypeChecked
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.stereotype.Controller

import javax.annotation.PostConstruct
import javax.annotation.PreDestroy
/**
 * Created by three on 14-9-28.
 */
@CompileStatic
@TypeChecked
@Controller
class SpringSocktIOServer {

    @Autowired
    private SocketIOServer server;

    @PostConstruct
    public void start() throws Exception {
//        server.start();
    }

    @PreDestroy
    public void stop() {
        server.stop();
    }

}
